import { requestClient } from '#/api/request';

export function save(obj: any) {
  return obj.id ? UpdateObj(obj) : AddObj(obj);
}
export function AddObj(obj: any) {
  return requestClient.post('/iam/system/org', obj);
}

export function DelObj(id: any) {
  return requestClient.delete(`/iam/system/org/${id}`);
}

export function UpdateObj(obj: any) {
  return requestClient.put(`/iam/system/org/${obj.id}`, obj);
}
